package com.bdth.bdthmg.vo;

/**
 * Created by Administrator on 2019/12/2.
 */
public class ResultVo {
    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    private ResultVo(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static ResultVo getError(String msg){
        return new ResultVo("500",msg);
    }

    public static ResultVo getSuccess(String msg){
        return new ResultVo("200",msg);
    }
}
